﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CSharpHW
{
    public partial class AccoutStatament : Form
    {
        public AccoutStatament()
        {
            InitializeComponent();
        }

        private void Acc_Delete_Click(object sender, EventArgs e)
        {
            AccountStatament_Delete account_delete = new AccountStatament_Delete();
            account_delete.Show();
            
        }

        private void AccoutStatament_Load(object sender, EventArgs e)
        {

        }

        private void ACC_selete_Click(object sender, EventArgs e)
        {
            DBUtility.connect("1234", "root");
            int year = int.Parse(Acc_year.Text);
            int month = int.Parse(Acc_month.Text);
            int day = int.Parse(Acc_month.Text);
            DataSet ds = DBUtility.getDataByDay(year, month, day);
            Acc_list.DataSource = ds;
            Acc_list.Items.Add(ds.ToString());
            DBUtility.disconnect();
        }
    }
}
